<!--

/*
* Copyright (C) 2005-2013 University of Sydney
*
* Licensed under the GNU License, Version 3.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.gnu.org/licenses/gpl-3.0.txt
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/

/**
* brief description of file
*
* @author      Tom Murtagh
* @author      Kim Jackson
* @author      Ian Johnson   <ian.johnson@sydney.edu.au>
* @author      Stephen White   <stephen.white@sydney.edu.au>
* @author      Artem Osmakov   <artem.osmakov@sydney.edu.au>
* @copyright   (C) 2005-2013 University of Sydney
* @link        http://Sydney.edu.au/Heurist
* @version     3.1.0
* @license     http://www.gnu.org/licenses/gpl-3.0.txt GNU License 3.0
* @package     Heurist academic knowledge management system
* @subpackage  !!!subpackagename for file such as Administration, Search, Edit, Application, Library
*/

-->
<!--

/**
* selectTermParent.html
*
* Show a (selection) tree with every available term. Select new parent term
*
* @version 2011.1017
* @autor: Artem Osmakov
*
* @copyright (C) 2005-2010 University of Sydney Digital Innovation Unit.
* @link: http://HeuristScholar.org
* @license http://www.gnu.org/licenses/gpl-3.0.txt
* @package Heurist academic knowledge management system
* @todo
**/

-->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Heurist - Select new parent term</title>



<link rel="stylesheet" type="text/css" href="../../external/yui/2.8.2r1/build/fonts/fonts-min.css" />
<link rel="stylesheet" type="text/css" href="../../external/yui/2.8.2r1/build/treeview/assets/skins/sam/treeview.css" />
<script type="text/javascript" src="../../external/yui/2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="../../external/yui/2.8.2r1/build/treeview/treeview-min.js"></script>

<script type="text/javascript" src="../../external/yui/2.8.2r1/build/yahoo/yahoo-min.js"></script>
<script type="text/javascript" src="../../external/yui/2.8.2r1/build/json/json-min.js"></script>

<link rel="stylesheet" type="text/css" href="../../common/css/global.css">
<link rel="stylesheet" type="text/css" href="../../common/css/edit.css">
<link rel="stylesheet" type="text/css" href="../../common/css/admin.css">

</head>
<body class="popup">

<script type="text/javascript" src="../../common/js/utilsLoad.js"></script>
<script src="../../common/php/loadCommonInfo.php"></script>
<script type="text/javascript" src="../../common/js/utilsUI.js"></script>
<script type="text/javascript" src="../../admin/structure/selectTermParent.js"></script>

<!--
<iframe id="structure" src="../../common/php/loadCommonInfo.php" width="10px" height="10px"></iframe>
-->

<div>
<div id="childTermName"></div>
</div>

<div id="termTreeText" style="display:inline-block;">
	<h3>Select the term you want to be a new parent</h3>
</div>

<div id="termTree" class="termTree ygtv-highlight" style="width:100%"></div>

<div style="padding-right:20px;">

<div style="padding-top:20px;display: inline-block;">
            <button title="Set root as a parent" onClick="selectTermParent.apply(true);">Parent is Root</button>
</div>

<div style="padding-top:20px;float:right;text-align:right;padding-right:10px;">
	<button title="Cancel changes" onClick="selectTermParent.cancel();">Cancel</button>
            <button title="Set selected terms as new parent" onClick="selectTermParent.apply(false);">Set Parent</button>
</div>

</div>

<!--  div id="selectedTerms"></div -->

<script type="text/javascript">

//
//  starts initialization on load completion of this window
//
YAHOO.util.Event.addListener(window, "load", function(){ selectTermParent = new  SelectTermParent(); });

</script>
</body>
</html>
